import SuContainer from './SuContainer/index.vue';
import SuCellGroup from './SuCellGroup/index.vue';
import SuDescriptions from './SuDescriptions/index.vue';
import SuNestedCollapse from './SuNestedCollapse/index.vue';
import SuTabs from './SuTabs/index.vue';
import SuCard from './SuCard/index.vue';
import SuForm from './SuForm/index.vue';
import SuInput from './SuInput/index.vue';
import SuCheckbox from './SuCheckbox/index.vue';
import SuTextarea from './SuTextarea/index.vue';
import SuRadio from './SuRadio/index.vue';
import SuDate from './SuDate/index.vue';
import SuUploader from './SuUploader/index.vue';
import SuSelect from './SuSelect/index.vue';
import SuDialog from './SuDialog/index.vue';
import SuList from './SuList/index.vue';
import SuTable from './SuTable/index.vue';
import { useSuLoading, useSuRouter } from './hooks';
const SuComponents = {
  SuContainer,
  SuCellGroup,
  SuDescriptions,
  SuNestedCollapse,
  SuTabs,
  SuCard,
  SuForm,
  SuInput,
  SuCheckbox,
  SuTextarea,
  SuRadio,
  SuDate,
  SuUploader,
  SuSelect,
  SuDialog,
  SuList,
  SuTable
};
const supreme = {
  install: (app) => {
    // 注册全局组件
    Object.keys(SuComponents).forEach((key) => {
      app.component(key, SuComponents[key]);
    });
  }
};
export { useSuLoading, useSuRouter };
// 导出插件
export default supreme;
